<?php
/*
 * Created by: Dikkehein <Clemens Wijnekus, c.wijnekus@gmail.com>
 */
echo link_tag('css/auth.css');
?>



<div class="login">
    <h1>Login</h1>
    <?php echo form_open('auth/login'); ?>
    <p>Email:</p>
    <?php
    echo form_input(array(
        'name' => 'email',
        'id' => 'email',
        'value' => set_value('email', ''),
        'maxlength' => '100',
        'size' => '50',
        'style' => 'width:100%'));
    ?>
    <p>Wachtwoord:</p>
    <?php
    echo form_password(array(
        'name' => 'wachtwoord',
        'id' => 'wachtwoord',
        'value' => set_value('wachtwoord', ''),
        'maxlength' => '100',
        'size' => '50',
        'style' => 'width:100%'));
    ?>
    <?php echo form_submit('submit', 'Laat me binnen', "class='btn btn-primary btn-block btn-large'"); ?>
    <?php echo anchor('auth', 'Annuleren', "class='btn btn-primary btn-block btn-large'"); ?>
    <?php if (validation_errors()) : ?>
        <h1>Error:</h1>
        <p><?php echo validation_errors(); ?></p>
    <?php endif; ?>

    <?php if (isset($login_fail)) : ?>
        <h1>Login Error:</h1>
        <p>Username or Password is incorrect, please try again.</p>
    <?php endif; ?>    

    <?php if (isset($no_access)) : ?>
        <h1>Login Error:</h1>
        <p>U heeft geen toegang tot stafplicatie.</p>
    <?php endif; ?>
</div>

<?php echo form_close(); ?>